package main

import "fmt"

func main() {
	//extname := ".doc"
	switch extname := "xls"; extname {
	case ".doc":
		{
			fmt.Println("word文档")
			//fallthrough
		}
	case ".xls":
		{
			fmt.Println("excel表格")
			//fallthrough
		}
	case ".ppt":
		{
			fmt.Println("ppt幻灯片")
			//fallthrough
		}
	case ".md":
		{
			fmt.Println("typora文件")
			//fallthrough
		}
	case ".png":
		{
			fmt.Println("png图片")
		}
	default:
		{
			fmt.Println("其他文件")
		}
	}
}
